package com.boot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.boot.business.PurchaseDTO;
import com.boot.product.pojo.Product;
import com.boot.product.vo.ProductStorageVo;
import com.boot.product.vo.ProductVo;
import com.boot.result.Result;
import com.boot.service.ProductService;
import com.boot.mapper.ProductMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
* @author liyan
* @description 针对表【product】的数据库操作Service实现
* @createDate 2025-05-25 10:39:45
*/
@Service
@AllArgsConstructor
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
    implements ProductService{
    private final ProductMapper productMapper;
    @Override
    public Result selectProductVoById(long id) {
        ProductVo productVo = productMapper.selectProductVoById(id);
        return Result.success(productVo);
    }
}




